//
//  NSString+FIDDate.h
//  MapDemo
//
//  Created by Fidetro on 16/5/24.
//  Copyright © 2016年 Fidetro. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (FIDDate)

/**
 通过1970时间转换成你想要的格式

 @param time       since1970
 @param dateFormat string的格式如yyyy-MM-dd HH:mm

 @return 返回字符串时间
 */
+ (NSString *)getYearDateWithDaySince1970:(NSTimeInterval)time dateFormat:(NSString *)dateFormat;
/**
 *  年月日方式
 */
+ (NSString *)getYearDay:(NSInteger)dayFromToday;
+ (NSString *)getYearToDay;
+ (NSString *)getYearLastDay;
+ (NSString *)getYearBeforeDay;

/**
 *  从1970至某天的0点的时间戳
 */
+ (NSString *)getDaySince1970:(NSInteger)dayFromToday;
+ (NSString *)getCurrentSince1970;
+ (NSString *)getTodaySince1970;
+ (NSString *)getLastDaySince1970;
+ (NSString *)getBeforeYesterdaySince1970;

/**
 *  通过秒获取时分秒
 */
+(NSString *)getMMSSFromSS:(NSInteger)seconds;
+ (NSString *)getWeek;


/**
 几小时前

 @param str 时间的字符串

 @return 返回几小时前
 */
+ (NSString *) compareCurrentTime:(NSString *)str;

/**
 多少分钟返回分、时、天、月

 @param Min 传入的分钟
 @return 返回分、时、天、月
 */
//+ (NSString *) compareToMin:(NSString *)Min;


+ (NSString *)compareToSecond:(NSString *)second;

@end
